import service from '@/utils/request'

export function login(data) {
  return service({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

export function getUserInfoAPI(data) {
  return service({
    url: '/sys/profile'
  })
}

export function updatePasswordAPI(data) {
  return service({
    url: 'sys/user/updatePass',
    method: 'put',
    data
  })
}
